Change the user agent selenium

58

Change the user agent selenium -

chromedriver = 'C:/tests/chromedriver.exe'
options = webdriver.ChromeOptions()
options.add_argument('--user-agent = Googlebot/2.1 (+http://www.google.com/bot.html)')
driver = webdriver.Chrome(executable_path = chromedriver, chrome_options = options)

Comments

Submit
0 Comments